/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package br.jcrsistemas.util;

/**
 *
 * @author Kadu
 */
public class SysException extends Exception {

    private int codigoMens;
    private String msg;
    private String descricaoCurta;

    /**
     * Creates a new instance of <code>SysException</code> without detail message.
     */
    public SysException() {
    }

    /**
     * Constructs an instance of <code>SysException</code> with the specified detail message.
     * @param msg the detail message.
     */
    public SysException(String msg) {
        this(msg, 0);
    }

    public SysException(String msg, int codigo) {
        super(msg);
        this.msg = msg;
        codigoMens = codigo;

    }

    @Override
    public String getMessage() {
        return msg;
    }

    public int getCodigo() {
        return codigoMens;
    }

    public String getDescricaoCurta() {
        return descricaoCurta;
    }
    
}
